package com.syq.personal.service;


import com.syq.personal.dto.DTO;
import com.syq.personal.entity.Personal;
import org.springframework.stereotype.Service;

import java.util.Arrays;

@Service("personalService")
public class PersonalServiceImpl implements PersonalService {
    @Override
    public DTO getAllPersonals() {
        Personal[] personalArray = {new Personal("0001","张三"),new Personal("0002","李四")};
        return new DTO(200,"查询成功", Arrays.asList(personalArray));
    }
}
